package com.foundationmade.newbiz.business.founder.domain;

// Generated 2013. 10. 22 ���� 2:45:08 by Hibernate Tools 4.0.0

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.codehaus.jackson.annotate.JsonIgnore;


/**
 * FounderHistory generated by hbm2java
 */
@Entity
@Table(name = "founder_history", catalog = "newbiz")
public class FounderHistory implements java.io.Serializable
{

	private long founderHistoryId;
	private Founder founder;
	private Date generatedTimestamp;
	private String contents;

	public FounderHistory()
	{
	}

	public FounderHistory(long founderHistoryId, Founder founder,
			Date generatedTimestamp, String contents)
	{
		this.founderHistoryId = founderHistoryId;
		this.founder = founder;
		this.generatedTimestamp = generatedTimestamp;
		this.contents = contents;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "FounderHistoryId", unique = true, nullable = false)
	public Long getFounderHistoryId()
	{
		return this.founderHistoryId;
	}

	public void setFounderHistoryId(long founderHistoryId)
	{
		this.founderHistoryId = founderHistoryId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "FounderId", nullable = false)
	@JsonIgnore
	public Founder getFounder()
	{
		return this.founder;
	}

	public void setFounder(Founder founder)
	{
		this.founder = founder;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "GeneratedTimestamp", nullable = false, length = 19)
	public Date getGeneratedTimestamp()
	{
		return this.generatedTimestamp;
	}

	public void setGeneratedTimestamp(Date generatedTimestamp)
	{
		this.generatedTimestamp = generatedTimestamp;
	}

	@Column(name = "Contents", nullable = false, length = 65535)
	public String getContents()
	{
		return this.contents;
	}

	public void setContents(String contents)
	{
		this.contents = contents;
	}

}
